import { UserClass, UserModel } from "../model/userModel";
import { ArticleClass, ArticleModel } from "../model/articleModel";

// 操作用户表
const userInfo = new UserClass()
userInfo.name = '白居易'
userInfo.age = 48
userInfo.id = '001'
UserModel.add(userInfo)
console.log(UserModel.get('001'));


// 操作文章表
const articleInfo = new ArticleClass()
articleInfo.title = '如何学习TS'
articleInfo.desc = '好文'
ArticleModel.add(articleInfo)
console.log(ArticleModel.get('002'));

